package com.easyjob.mappers;

import org.apache.ibatis.annotations.Param;

public interface ChapterMapper<T, P> extends BaseMapper<T, P> {
    /**
     * 根据CategoryId更新
     */
    Integer updateByChapterId(@Param("bean") T t, @Param("chapterId") Integer chapterId);

    /**
     * 根据CategoryId删除
     */
    Integer deleteByChapterId(@Param("chapterId") Integer chapterId);

    /**
     * 根据CategoryId获取对象
     */
    T selectByChapterId(@Param("chapterId") Integer chapterId);


    void updateChapterName(@Param("chapterName") String chapterName, @Param("chapterId") Integer chapterId);


    Integer selectCountByChapterId(@Param("query") P chapterQuery);
}
